package com.yuw.threaddemo1;

public class MyThreadTwo implements Runnable {

	@Override
	public void run() {
		// 多线程业务逻辑实现
		for (int i = 0; i < 20; i++) {
			System.out.println(Thread.currentThread().getName() + ":" + i);
			// 休眠500ms
			try {
				//this.wait(500);
				Thread.sleep(500);
			} catch (InterruptedException e) {
				// 异常处理
				e.printStackTrace();
			}
		}
	}

}
